﻿<!DOCTYPE html>
<html lang="en">
<head>
    <title>宾果高校</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/swiper.min.css">
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/sweetalert.min.css" />
</head>
<body>
    <div class="header">
        <div class="wrap clearfix">
            <div class="logo-entrance"><img src="images/logo.png" alt=""></div>
            <div class="slogan">
                <p>宾果高校为赞助而生</p>
            </div>
            <div class="hotline">
                <p style="margin-top: 6px;">大客户热线</p>
                <p style="font-size: 20px;font-family: Constantia;color: #F2753F;">400-9955-520</p>
            </div>
        </div>
    </div>
    <div class="main-entrance wrap">
        <div class="clearfix">
            <div class="banner-entrance">
                <div class="swiper-container">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide"><img src="images/audit-banner.jpg" alt=""></div>
                        <div class="swiper-slide">2</div>
                        <div class="swiper-slide">3</div>
                    </div>
                    <div class="swiper-pagination"></div>
                </div>
            </div>
            <div class="login-box">
                <div class="panel panel-default">
                    <div class="panel-heading"></div>
                    <div class="panel-body">
                        <h2>欢迎注册</h2>
                        <form id="formValidate" action="" class="form-horizontal">
                            <div class="form-group">
                                <input type="number" data-minlength="11" id="UserName" data-maxlength="11" name="" placeholder="请输入常用手机号码" data-error="请输入已验证手机号码" autofocus="autofocus" required class="form-control">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group form-inline">
                                <input type="number" name="" id="NickName" data-minlength="4" data-maxlength="4" style="display: inline-block;width: 218px;" placeholder="请输入短信验证码" data-error="请输入四位数的验证码" required class="form-control">
                                <button id="getAuditcode" type="button" class="btn btn-default">获取验证码</button>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div id="divReminder" style="color:red; ">

                            </div>
                            <div class="form-group">
                                <input type="password" name="" placeholder="请输入密码" data-error="请输入密码" id="Password" required class="form-control">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group text-center">
                                <label class="radio-inline">
                                    <input type="radio" name="Role" value="1" required>我是商家
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="Role" value="2" required>我是社团
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="Role" value="3" required>我是代理
                                </label>
                            </div>
                            <div class="form-group">
                                <button type="button" id="btnSubmit" class="btn btn-default btn-block">　注册</button>
                            </div>
                            <div class="form-group text-right"><a href="login.html">已注册可直接登录</a></div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="notice">
            <ul class="clearfix">
                <li>
                    <h2 class="text-center">安全保障</h2>
                    <p>网站保障消费者账号密码等重要信息的安全</p>
                </li>
                <li>
                    <h2 class="text-center">智慧提醒</h2>
                    <p>支持邮箱、手机、等多种方式提醒，时刻了解进度</p>
                </li>
                <li style="margin: 0;">
                    <h2 class="text-center">贴心客服</h2>
                    <p>客服热线：400-9955-520</p>
                    <p>客服邮箱：********@qq.com</p>
                </li>
            </ul>
        </div>
    </div>
    <div class="footer">
        <div class="wrap">
            <div class="text-center">
                <p>深圳市*****有限公司 版权所有 2015-2016 粤ICP备440113331382568号<a href="" style="margin-left: 10px;">关于宾果高校  |  帮助中心  |  网站合作 |  版权说明 |  诚聘英才 |  联系我们</a></p>
            </div>
        </div>
    </div>
</body>
</html>
<script src="js/jquery-1.12.2.min.js"></script>
<script src="js/validator.min.js"></script>
<script src="js/swiper.min.js"></script>
<script src="js/sha512.js"></script>
<script src="js/common.js"></script>
<script src="js/login.js"></script>
<script src="js/sweetalert.min.js"></script>
<script>

    fn.swiper();

    function AfteAjax(ctx) {
        if (ctx == "" || ctx == null) {
            $("#divReminder").html("").append("该手机已注册");
            return;
        }

        $("#divReminder").html("").append("验证码已经发出，请注意查收");
    }

    function AfteAjax1(ctx) {
        if (ctx == "" || ctx == null) {
            $('#lblError').html("").append("操作失败，请重试！");
            return;
        }

        window.location = "enterprise/index.html";
    }

 

        $("#getAuditcode").click(function () {

            var phoneNo = $('#UserName').val();

            if (!common.checkValue(phoneNo)) {
                $("#divReminder").html("").append("请输入手机号");
                return;
            }

            common.commonAjax({ type: 'Get', url: 'api/login/get/' + phoneNo, sMethod: AfteAjax });
        })

        $("#btnSubmit").click(function () {

            if (!common.validateForm())
                return;

            var values = common.GetCtrlValues({
                ContentID: "formValidate"
            })
            common.commonAjax({ type: 'Post', url: 'api/login/post', data: values, sMethod: AfteAjax1 });
        })
  
</script>